import com.wyl.services.BookService
import com.wyl.services.BookServiceImpl
import org.junit.Test
import org.springframework.beans.factory.getBean
import org.springframework.context.support.ClassPathXmlApplicationContext

class UserServicesTest {
    @Test
    fun test(){
        val context = ClassPathXmlApplicationContext("applicationContext.xml")
        val bookService = context.getBean<BookService>()
        bookService.queryAll().forEach(::println)
    }
}